<?php
$id=$_GET['id'];
$filename="$id.html";
//echo $filename;
if(file_exists($filename))
{
    echo "这是静态化后的";
    include $filename;
}
else
{
    if(file_exists($filename))
    {
        unlink($filename);
    }
    else
    {
        $dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
        $sql="select * from memberadd where id=".$id;
        $arr=$dbh->query($sql)->fetch(PDO::FETCH_ASSOC);
        ob_start();
        include "moban.php";
        file_put_contents($filename,ob_get_clean());
        include $filename;

    }
}